在MindSpore1.1.1下训练模型,利用converter进行mindir转换时出现错误的解决方案 | 您所在的位置:网站首页 › mindspore lite官网 › 在MindSpore1.1.1下训练模型,利用converter进行mindir转换时出现错误的解决方案 |
转载地址:https://bbs.huaweicloud.com/forum/thread-106101-1-1.html 作者:李响 一 运行环境 MindSpore 版本号:1.1.1 硬件平台:CPU; Python版本号:3.7.5; 操作系统:Windows10 二 问题现象&报错信息: [ERROR] LITE(16100, ?)2021-2-5 14:15:32 [mindspore\lite\tools\common\protobuf_utils.cc:94] ReadProtoFromBinaryFile] parse ./mindspore.mindir failed. [ERROR] LITE(16100, ?)2021-2-5 14:15:32 [mindspore\lite\tools\anf_importer\import_from_mindir.cc:910] ReadOnnxFromBinary] Read onnx model file failed, which is not a matched onnx model [ERROR] LITE(16100, ?)2021-2-5 14:15:32 [mindspore/core/ir/anf.h:428] GetValue] : The pointer[value] is null. terminate called after throwing an instance of 'std::runtime_error' what(): mindspore/core/ir/anf.h:428 GetValue] : The pointer[value] is null. Traceback (most recent call last): File "D:/mycode/imageclassifier_obs/v1.1.1/model_create.py" line 799, in main2 os.chmod('./mindspore.ms', stat.S_IRWXU) FileNotFoundError: [WinError 2] 系统找不到制定的文件。:'./mindspore.ms' 三 问题原因&解决方案:当前训练代码的MindSpore版本是1.1.1,但是MIndSpore自带的模型转换工具最新版本为1.1.0,不匹配,需要把MindSpore1.1.1降级为1.1.0版本,MindSpore后续会优化此功能; 四 总结;由于当前训练代码的MindSpore版本是1.1.1与MIndSpore自带的模型转换工具最新版本为1.1.0不匹配,需要把MindSpore1.1.1降级为1.1.0版本,此问题可解决。 邮箱:[email protected] |
CopyRight 2018-2019 实验室设备网 版权所有 |